home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 076-100 / disk_076 / include / intuition / window.g < prev   
Text File  |  1992-05-06  |  3KB  |  149 lines

  1. type
  2.     Window_t = struct {
  3.     *Window_t w_NextWindow;
  4.     
  5.     uint w_LeftEdge, w_TopEdge;
  6.     uint w_Width, w_Height;
  7.     
  8.     int w_MouseY, w_MouseX;
  9.     
  10.     uint w_MinWidth, w_MinHeight;
  11.     uint w_MaxWidth, w_MaxHeight;
  12.     
  13.     ulong w_Flags;
  14.     
  15.     *Menu_t w_MenuStrip;
  16.     
  17.     *char w_Title;
  18.     
  19.     *Requester_t w_FirstRequest;
  20.     *Requester_t w_DMRequest;
  21.     uint w_ReqCount;
  22.     
  23.     *Screen_t w_WScreen;
  24.     *RastPort_t w_RPort;
  25.     
  26.     ushort w_BorderLeft, w_BorderTop, w_BorderRight, w_BorderBottom;
  27.     *RastPort_t w_BorderRPort;
  28.     
  29.     *Gadget_t w_FirstGadget;
  30.     
  31.     *Window_t w_Parent, w_Descendant;
  32.     
  33.     *uint w_Pointer;
  34.     ushort w_PtrHeight, w_PtrWidth;
  35.     short w_XOffset, w_YOffset;
  36.     
  37.     ulong w_IDCMPFlags;
  38.     *MsgPort_t w_UserPort, w_WindowPort;
  39.     *IntuiMessage_t w_MessageKey;
  40.     
  41.     ushort w_DetailPen, w_BlockPen;
  42.     
  43.     *Image_t w_CheckMark;
  44.     
  45.     *char w_ScreenTitle;
  46.     
  47.     int w_GZZMouseX, w_GZZMouseY;
  48.     uint w_GZZWidth, w_GZZHeight;
  49.     
  50.     *byte w_ExtData;
  51.     
  52.     *byte w_UserData;
  53.     
  54.     *Layer_t w_WLayer;
  55.     
  56.     *TextFont_t w_IFont;
  57.     };
  58.  
  59. ulong
  60.     WINDOWSIZING    = 0x00000001,
  61.     WINDOWDRAG        = 0x00000002,
  62.     WINDOWDEPTH     = 0x00000004,
  63.     WINDOWCLOSE     = 0x00000008,
  64.  
  65.     SIZEBRIGHT        = 0x00000010,
  66.     SIZEBBOTTOM     = 0x00000020,
  67.  
  68.     REFRESHBITS     = 0x000000C0,
  69.     SMART_REFRESH   = 0x00000000,
  70.     SIMPLE_REFRESH  = 0x00000040,
  71.     SUPER_BITMAP    = 0x00000080,
  72.     OTHER_REFRESH   = 0x000000C0,
  73.  
  74.     BACKDROP        = 0x00000100,
  75.  
  76.     REPORTMOUSE     = 0x00000200,
  77.  
  78.     GIMMEZEROZERO   = 0x00000400,
  79.  
  80.     BORDERLESS        = 0x00000800,
  81.  
  82.     ACTIVATE        = 0x00001000,
  83.  
  84.     WINDOWACTIVE    = 0x00002000,
  85.     INREQUEST        = 0x00004000,
  86.     MENUSTATE        = 0x00008000,
  87.  
  88.     RMBTRAP        = 0x00010000,
  89.     NOCAREREFRESH   = 0x00020000,
  90.  
  91.     WINDOWREFRESH   = 0x01000000,
  92.     WBENCHWINDOW    = 0x02000000,
  93.     WINDOWTICKED    = 0x04000000,
  94.  
  95.     SUPER_UNUSED    = 0xF8FC0000;
  96.  
  97. type
  98.     NewWindow_t = struct {
  99.     uint nw_LeftEdge, nw_TopEdge;
  100.     uint nw_Width, nw_Height;
  101.     
  102.     ushort nw_DetailPen, nw_BlockPen;
  103.     
  104.     ulong nw_IDCMPFlags;
  105.     
  106.     ulong nw_Flags;
  107.     
  108.     *Gadget_t nw_FirstGadget;
  109.     
  110.     *Image_t nw_CheckMark;
  111.     
  112.     *char nw_Title;
  113.     
  114.     *Screen_t nw_Screen;
  115.     
  116.     *BitMap_t nw_BitMap;
  117.     
  118.     uint nw_MinWidth, nw_MinHeight;
  119.     uint nw_MaxWidth, nw_MaxHeight;
  120.     
  121.     uint nw_Type;
  122.     };
  123.  
  124. uint
  125.     FREESIZE = 0xffff;
  126.  
  127. ushort
  128.     FREEPEN = 0xff;
  129.  
  130. extern
  131.     ActivateWindow(*Window_t w)void,
  132.     BeginRefresh(*Window_t w)void,
  133.     ClearPointer(*Window_t w)void,
  134.     CloseWindow(*Window_t w)void,
  135.     EndRefresh(*Window_t w; ulong complete)void,
  136.     ModifyIDCMP(*Window_t w; ulong IDCMPFlags)void,
  137.     MoveWindow(*Window_t w; long deltaX, deltaY)void,
  138.     OpenWindow(*NewWindow_t nw)*Window_t,
  139.     RefreshWindowFrame(*Window_t w)void,
  140.     ReportMouse(ulong value; *Window_t w)void,
  141.     SetPointer(*Window_t w; *uint pointer;
  142.            ulong height, width; long XOffset, YOffset)void,
  143.     SetWindowTitles(*Window_t w; *char windowTitle, screenTitle)void,
  144.     SizeWindow(*Window_t w; long deltaX, deltaY)void,
  145.     ViewPortAddress(*Window_t w)*ViewPort_t,
  146.     WindowLimits(*Window_t w; ulong minWidth,minHeight,maxWidth,maxHeight)bool,
  147.     WindowToBack(*Window_t w)void,
  148.     WindowToFront(*Window_t w)void;
  149.